        <?php        
session_start();      
include_once 'data_access.php';
include_once 'student.php';
$connect=new database_access();
$connect->connect();
$student=new student();
$recommendation=$student->showrecomendation($_SESSION['personalnumber']);
$row=mysql_fetch_array($recommendation);
$room_id=$row['room_id'];
$student->rejectrecomendation($room_id,$_SESSION['personalnumber']);
header('location: rejected.php');

?>